import { writable, derived } from 'svelte/store';

 // 父组件维护一个共享的状态，使用 Svelte store
export const sharedData = writable('');

// state
export const count = writable(2)

// getters
export const dbCount = derived(count, $count => $count * 2)
